package kr.pfg.pfgTracer.view.list
{
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.text.AntiAliasType;
	import flash.text.GridFitType;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	
	public class VListItemBallow extends Sprite
	{
		private var bg: Shape;
		private var txtField: TextField;
		
		public function VListItemBallow()
		{
			this.mouseEnabled = false;
			
			bg = new Shape();
			bg.graphics.beginFill( 0xff3399, 1 )
			bg.graphics.drawRect( 0, 0, 10, 10 );			
			addChild ( bg );
			
			var tf: TextFormat = new TextFormat();
			tf.font = "Malgun Gothic";
			tf.color = 0x000000;
			tf.size = 11;
			tf.letterSpacing = -0.2;
			
			txtField = new TextField();
			txtField.defaultTextFormat = tf;
			txtField.autoSize = TextFieldAutoSize.LEFT;
			txtField.textColor = 0xffffff;			
			txtField.embedFonts = true;
			txtField.antiAliasType = AntiAliasType.ADVANCED;
			txtField.gridFitType = GridFitType.PIXEL;
			txtField.selectable = false;
			txtField.mouseEnabled = false;
			addChild ( txtField );			
		}
		
		
		/*
		//	name = 파일명;
		//	version = player 버전
		//	frame = 프레임수
		//	actionV = 액션스크립트 버전 			
		*/
		
		private var nameMember: Array = ["" , "[ Player "," [ Frame " , " [ AS " ]  
		public function optionData( data: Array ): void
		{
			var n: uint = data.length;
			for ( var i:uint = 1 ; i <= 3 ; i ++ )
			{
				trace ( i );
				txtField.appendText( nameMember[ i ] + data[ i ] + " ] " + "\n" );
			}
			
			bg.width = txtField.textWidth;			
			bg.height = txtField.textHeight + 3;
			
		}

	}
}
